package com.jiuyi.service;

import com.jiuyi.common.R;
import com.jiuyi.entity.AddressBook;
import com.jiuyi.vo.AddressBookSelectListVo;

import javax.servlet.http.HttpServletRequest;

/**
 * DATA: 2022/10/23
 * Author: 晨夕
 */
public interface AddressBookService {
    //添加收货地址
    R getAddressBook(AddressBook addressBook, HttpServletRequest request);
    //查询收货地址列表
    R<AddressBookSelectListVo> selectAddressBookList(HttpServletRequest request);
    //设置默认地址
    R updateDetail(Long id,HttpServletRequest request);
    //跟据id查询地址
    R<AddressBookSelectListVo> selectById(Long id);
    //修改收货地址
    R updateAddressBook(AddressBook addressBook);
    //根据id删除地址
    R deleteAddressBook(Long ids);
    //获取默认地址
    R<AddressBook> selectDefaultAddressBook(HttpServletRequest request);
}
